home *** CD-ROM | disk | FTP | other *** search
/ ...taking it to the Macs! / ...taking it to the Macs!.iso / Extras / ActiveX Mac SDK / ActiveX SDK / Sample Controls / HLink / CHLinkControl.h < prev    next >
Encoding:
Text File  |  1996-12-16  |  1.2 KB  |  44 lines  |  [TEXT/CWIE]

  1. // =================================================================================
  2. //
  3. //    CHLinkControl.h                ©1996 Microsoft Corporation All rights reserved.
  4. //
  5. // =================================================================================
  6.  
  7. #ifndef _H_CHLinkControl
  8. #define _H_CHLinkControl
  9. #pragma once
  10.  
  11. #include "CBaseControl.h"
  12.  
  13. class CHLinkControl : public CBaseControl
  14. {
  15.  
  16. public:
  17.     // *** CHLinkControl methods ***
  18.     CHLinkControl(void);
  19.     ~CHLinkControl(void);
  20.     
  21.     // *** IObjectWithSite methods ***
  22.     STDMETHOD (SetSite)(THIS_ IUnknown* inUnkSite);
  23.     
  24.     // *** IControl methods ***
  25.     STDMETHOD (Draw) (THIS_ DrawContext* inContext);
  26.     STDMETHOD (GetID)(THIS_ Int32 inBufferSize, Char8* outID);
  27.     STDMETHOD (DoMouse)(THIS_ MouseEventType inMouseET, PlatformEvent* inEvent);
  28.     STDMETHOD (Load)(IPropertyBag* PropertyBag, IErrorLog* ErrorLog);
  29.     STDMETHOD (LoadTextState)(IPropertyBag *PropertyBag, IErrorLog* ErrorLog);
  30.     
  31. private:
  32.     // private methods
  33.     Boolean ButtonEnabled(void);
  34.  
  35.     // private members
  36.     Char8*            mIDP;
  37.     IHLinkBasic*    mHLinkP;
  38.     Uchar8            mTargetURL[MAX_URL_STRING];
  39.     HLinkNavigate    mLinkType;
  40.     CursHandle        mFingerCursor;
  41. };
  42.  
  43. #endif
  44.